package com.hk.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.hk.model.CustUserDto;
import com.hk.model.ICustUserService;
//com.hk.controller.CustUserController
public class CustUserController extends AbstractController {
	private ICustUserService custUserService;
	
	public void setCustUserService(ICustUserService custUserService) {
		this.custUserService = custUserService;
	}

	@Override
	protected ModelAndView handleRequestInternal(
			HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		ModelAndView mav=new ModelAndView();
		List<CustUserDto> custlists=custUserService.getAllCustUsers();
		mav.addObject("custs", custlists);
		mav.setViewName("custuserlist");
		return mav;
	}//
}//









